package com.moyun.zbmy.zizhou.ui.adapter.holder;

import android.content.Context;
import android.text.TextUtils;
import android.view.View;

import com.moyun.zbmy.zizhou.R;
import com.moyun.zbmy.zizhou.beans.ImageBean;
import com.moyun.zbmy.zizhou.beans.ImageUr;
import com.moyun.zbmy.zizhou.ui.utils.GlideUtil;
import com.ruihang.generalibrary.ui.adapter.holder.BaseRecylerHolder;
import com.ruihang.generalibrary.ui.widget.CustomEXImageView;

import butterknife.BindView;
import butterknife.ButterKnife;

public class AccountPicHolder extends BaseRecylerHolder<ImageBean> {
    @BindView(R.id.item_pic_pic)
    public CustomEXImageView img;

    public AccountPicHolder(Context context, View itemView) {
        super(context, itemView);
    }

    @Override
    protected void initInject() {
        ButterKnife.bind(this, itemView);
    }

    @Override
    public void setData(ImageBean imgUrl) {
        if (!TextUtils.isEmpty(imgUrl.getImage())) {
            GlideUtil.loadImgWith11Def(context, imgUrl.getImage(), img);
        }
    }


}
